package com.fastbee.iot.domain;

import com.fastbee.common.annotation.Excel;
import com.fastbee.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 设备对象 whhx_devices
 *
 * @author kerwincui
 * @date 2021-12-16
 */
@ApiModel(value = "Devices", description = "设备对象 whhx_devices")
public class WhhxDevices extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    @ApiModelProperty("设备ID")
    private String id;

    /** 工厂ID */
    @ApiModelProperty("工厂ID")
    private String factoryId;

    /** 设备名称 */
    @ApiModelProperty("设备名称")
    @Excel(name = "设备名称")
    private String name;

    /** 设备编码 */
    @ApiModelProperty("设备编码")
    @Excel(name = "设备编码")
    private String code;

    /** 设备型号 */
    @ApiModelProperty("设备型号")
    @Excel(name = "设备型号")
    private String model;

    /** 规格 */
    @ApiModelProperty("规格")
    @Excel(name = "规格")
    private String norm;

    /** 购买时间 */
    @ApiModelProperty("购买时间")
    @Excel(name = "购买时间")
    private LocalDateTime buyTime;

    /** 使用状态 */
    @ApiModelProperty("使用状态")
    @Excel(name = "使用状态")
    private Integer status;

    /** 设备ip */
    @ApiModelProperty("设备ip")
    @Excel(name = "设备ip")
    private String deviceIp;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        id = id;
    }

    public String getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(String factoryId) {
        this.factoryId = factoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getNorm() {
        return norm;
    }

    public void setNorm(String norm) {
        this.norm = norm;
    }

    public LocalDateTime getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(LocalDateTime buyTime) {
        this.buyTime = buyTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDeviceIp() {
        return deviceIp;
    }

    public void setDeviceIp(String deviceIp) {
        this.deviceIp = deviceIp;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("factoryId", getFactoryId())
                .append("name", getName())
                .append("code", getCode())
                .append("model", getModel())
                .append("norm", getNorm())
                .append("buyTime", getBuyTime())
                .append("status", getStatus())
                .append("deviceIp", getDeviceIp())
                .toString();
    }
}
